import type { Browser } from '@/utils/tools'
interface State {
  loadText: object
  browser: Browser | null
}
const state: State = {
  loadText: {
    loadmore: '上拉加载更多',
    loading: '数据加载中...',
    nomore: '已展示全部',
    error: '加载失败，点击重新加载'
  },
  browser: null
}

const mutations = {
  SET_BROWSER(state: State, payload: Browser) {
    state.browser = payload
  }
}

const actions = {}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
